FROM apache/superset:latest

USER root

# 安装必要的系统依赖
RUN apt-get update && apt-get install -y \
    pkg-config \
    default-libmysqlclient-dev \
    build-essential \
    python3-dev \
    && rm -rf /var/lib/apt/lists/*

# 安装Python MySQL客户端库和Doris驱动
RUN pip install --no-cache-dir \
    mysqlclient \
    pymysql \
    sqlalchemy-doris \
    pydoris

USER superset